package com.dev.op.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Objects;

/**
 * 
 * @TableName problem
 */
@TableName(value ="problem")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Problem {
    /**
     * 
     */
    @TableId(type = IdType.AUTO)
    @JsonProperty("problem_id")
    private Integer problemId;

    /**
     *
     */
    @TableField(value = "problem_title")
    @JsonProperty("title")
    private String problemTitle;

    /**
     *
     */
    @TableField(value = "problem_desc")
    @JsonProperty("desc")
    private String problemDesc;

    @TableField(value = "time_limit")
    @JsonProperty("time_limit")
    private String timeLimit;

    @TableField(value = "mem_limit")
    @JsonProperty("mem_limit")
    private String memLimit;


    @Override
    public String toString() {
        return "Problem{" +
                "problemId=" + problemId +
                ", problemTitle='" + problemTitle + '\'' +
                ", problemDesc='" + problemDesc + '\'' +
                ", timeLimit='" + timeLimit + '\'' +
                ", memLimit='" + memLimit + '\'' +
                '}';
    }
}